﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CourseArraging.UControl;
using System.Drawing;
using System.Data;
using System.ComponentModel; 
using CourseArraging.Properties;

namespace CourseArraging.Frm.xygl
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public class FrmStuCondi : Form
    {
        // Fields
        private CheckBox checkBox_1;
        private CheckBox checkBox_10;
        private CheckBox checkBox_11;
        private CheckBox checkBox_12;
        private CheckBox checkBox_13;
        private CheckBox checkBox_14;
        private CheckBox checkBox_2;
        private CheckBox checkBox_3;
        private CheckBox checkBox_4;
        private CheckBox checkBox_5;
        private CheckBox checkBox_6;
        private CheckBox checkBox_7;
        private CheckBox checkBox_8;
        private CheckBox checkBox_9;
        private CheckBox checkBox_arranged;
        private CheckBox checkBox_Grad_1;
        private CheckBox checkBox_Grad_10;
        private CheckBox checkBox_Grad_11;
        private CheckBox checkBox_Grad_12;
        private CheckBox checkBox_Grad_13;
        private CheckBox checkBox_Grad_14;
        private CheckBox checkBox_Grad_2;
        private CheckBox checkBox_Grad_3;
        private CheckBox checkBox_Grad_4;
        private CheckBox checkBox_Grad_5;
        private CheckBox checkBox_Grad_6;
        private CheckBox checkBox_Grad_7;
        private CheckBox checkBox_Grad_8;
        private CheckBox checkBox_Grad_9;
        private CheckBox checkBox1;
        public ComboBox combo_sex;
        private IContainer components = null;
        public List<string> courselist = new List<string>();
        public List<string> gradelist = new List<string>();
        private GroupBox groupBox_course;
        private GroupBox groupBox_grade;
        private GroupBox groupBox1;
        private GroupBox groupBox2;
        private Label label1;
        private Label label10;
        private Label label11;
        private Label label3;
        private Label label4;
        private TabPage tab_basic;
        private TabPage tab_free;
        private TabControl tabControl1;
        private ToolStrip toolStrip1;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripSeparator toolStripSeparator2;
        private ToolStripSeparator toolStripSeparator3;
        private ToolStripButton tsb_copy;
        private ToolStripButton tsb_cut;
        private ToolStripButton tsb_exit;
        private ToolStripButton tsb_help;
        private ToolStripButton tsb_ok;
        private ToolStripButton tsb_paste;
        private ToolStripButton tsb_refresh;
        private TextBox txt_no;
        public TextBox txt_spell;
        public UCCombo_dep ucCombo_dep1;
        private UCcurriculumWrite uCkcb1;
        protected YhxxService.YhxxServiceClient yhxxdao = new YhxxService.YhxxServiceClient();
        private bool isArranged;//已安排/未安排的学生

        // Events
        public event DelegateSearch SearchOK;

        // Methods
        public FrmStuCondi(bool isarr)
        {
            this.InitializeComponent();
            this.isArranged = isarr;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void GetConditions()
        {
            this.courselist.Clear();
            this.gradelist.Clear();
            foreach (CheckBox box in this.groupBox_course.Controls.OfType<CheckBox>())
            {
                if (box.Checked)
                {
                    this.courselist.Add(box.Text);
                }
            }
            foreach (CheckBox box2 in this.groupBox_grade.Controls.OfType<CheckBox>())
            {
                if (box2.Checked)
                {
                    this.gradelist.Add(box2.Text);
                }
            }
        }

        private void InitializeComponent()
        {
            this.toolStrip1 = new ToolStrip();
            this.tsb_ok = new ToolStripButton();
            this.tsb_refresh = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.tsb_cut = new ToolStripButton();
            this.tsb_copy = new ToolStripButton();
            this.tsb_paste = new ToolStripButton();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.tsb_help = new ToolStripButton();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.tsb_exit = new ToolStripButton();
            this.tabControl1 = new TabControl();
            this.tab_basic = new TabPage();
            this.checkBox_arranged = new CheckBox();
            this.groupBox_grade = new GroupBox();
            this.checkBox_Grad_14 = new CheckBox();
            this.checkBox_Grad_9 = new CheckBox();
            this.checkBox_Grad_8 = new CheckBox();
            this.checkBox_Grad_13 = new CheckBox();
            this.checkBox_Grad_7 = new CheckBox();
            this.checkBox_Grad_10 = new CheckBox();
            this.checkBox_Grad_6 = new CheckBox();
            this.checkBox_Grad_12 = new CheckBox();
            this.checkBox_Grad_5 = new CheckBox();
            this.checkBox_Grad_11 = new CheckBox();
            this.checkBox_Grad_4 = new CheckBox();
            this.checkBox_Grad_3 = new CheckBox();
            this.checkBox_Grad_2 = new CheckBox();
            this.checkBox_Grad_1 = new CheckBox();
            this.groupBox_course = new GroupBox();
            this.checkBox1 = new CheckBox();
            this.checkBox_14 = new CheckBox();
            this.checkBox_13 = new CheckBox();
            this.checkBox_12 = new CheckBox();
            this.checkBox_11 = new CheckBox();
            this.checkBox_10 = new CheckBox();
            this.checkBox_9 = new CheckBox();
            this.checkBox_8 = new CheckBox();
            this.checkBox_7 = new CheckBox();
            this.checkBox_6 = new CheckBox();
            this.checkBox_5 = new CheckBox();
            this.checkBox_4 = new CheckBox();
            this.checkBox_3 = new CheckBox();
            this.checkBox_2 = new CheckBox();
            this.checkBox_1 = new CheckBox();
            this.groupBox1 = new GroupBox();
            this.txt_no = new TextBox();
            this.label11 = new Label();
            this.ucCombo_dep1 = new UCCombo_dep();
            this.combo_sex = new ComboBox();
            this.label3 = new Label();
            this.label1 = new Label();
            this.txt_spell = new TextBox();
            this.label4 = new Label();
            this.tab_free = new TabPage();
            this.groupBox2 = new GroupBox();
            this.uCkcb1 = new UCcurriculumWrite();
            this.label10 = new Label();
            this.toolStrip1.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.tab_basic.SuspendLayout();
            this.groupBox_grade.SuspendLayout();
            this.groupBox_course.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.tab_free.SuspendLayout();
            this.groupBox2.SuspendLayout();
            base.SuspendLayout();
            this.toolStrip1.ImageScalingSize = new Size(0x18, 0x18);
            this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.tsb_ok, this.tsb_refresh, this.toolStripSeparator1, this.tsb_cut, this.tsb_copy, this.tsb_paste, this.toolStripSeparator2, this.tsb_help, this.toolStripSeparator3, this.tsb_exit });
            this.toolStrip1.Location = new Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new Size(0x29f, 0x1f);
            this.toolStrip1.TabIndex = 14;
            this.toolStrip1.Text = "toolStrip1";
            this.tsb_ok.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_ok.Image = Resources._1294462998_clean;
            this.tsb_ok.ImageTransparentColor = Color.Magenta;
            this.tsb_ok.Name = "tsb_ok";
            this.tsb_ok.Size = new Size(0x1c, 0x1c);
            this.tsb_ok.Text = "保存";
            this.tsb_ok.Click += new EventHandler(this.tsb_ok_Click);
            this.tsb_refresh.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_refresh.Image = Resources._1294490498_view_refresh;
            this.tsb_refresh.ImageTransparentColor = Color.Magenta;
            this.tsb_refresh.Name = "tsb_refresh";
            this.tsb_refresh.Size = new Size(0x1c, 0x1c);
            this.tsb_refresh.Text = "刷新";
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new Size(6, 0x1f);
            this.tsb_cut.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_cut.Image = Resources._1297242097_Cut;
            this.tsb_cut.ImageTransparentColor = Color.Magenta;
            this.tsb_cut.Name = "tsb_cut";
            this.tsb_cut.Size = new Size(0x1c, 0x1c);
            this.tsb_cut.Text = "剪切";
            this.tsb_copy.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_copy.Image = Resources._1297242169_edit_copy;
            this.tsb_copy.ImageTransparentColor = Color.Magenta;
            this.tsb_copy.Name = "tsb_copy";
            this.tsb_copy.Size = new Size(0x1c, 0x1c);
            this.tsb_copy.Text = "复制";
            this.tsb_paste.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_paste.Image = Resources._1297242119_Paste;
            this.tsb_paste.ImageTransparentColor = Color.Magenta;
            this.tsb_paste.Name = "tsb_paste";
            this.tsb_paste.Size = new Size(0x1c, 0x1c);
            this.tsb_paste.Text = "粘贴";
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new Size(6, 0x1f);
            this.tsb_help.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_help.Image = Resources._1297242316_stock_help_agent;
            this.tsb_help.ImageTransparentColor = Color.Magenta;
            this.tsb_help.Name = "tsb_help";
            this.tsb_help.Size = new Size(0x1c, 0x1c);
            this.tsb_help.Text = "帮助";
            this.tsb_help.Click += new EventHandler(this.tsb_help_Click);
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new Size(6, 0x1f);
            this.tsb_exit.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsb_exit.Image = Resources._1297241912_application_exit;
            this.tsb_exit.ImageTransparentColor = Color.Magenta;
            this.tsb_exit.Name = "tsb_exit";
            this.tsb_exit.Size = new Size(0x1c, 0x1c);
            this.tsb_exit.Text = "退出";
            this.tsb_exit.Click += new EventHandler(this.tsb_exit_Click);
            this.tabControl1.Controls.Add(this.tab_basic);
            this.tabControl1.Controls.Add(this.tab_free);
            this.tabControl1.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            this.tabControl1.Location = new Point(12, 0x3b);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new Size(0x287, 0x142);
            this.tabControl1.TabIndex = 0x10;
            this.tab_basic.BackColor = Color.PowderBlue;
            this.tab_basic.Controls.Add(this.checkBox_arranged);
            this.tab_basic.Controls.Add(this.groupBox_grade);
            this.tab_basic.Controls.Add(this.groupBox_course);
            this.tab_basic.Controls.Add(this.groupBox1);
            this.tab_basic.Location = new Point(4, 0x1a);
            this.tab_basic.Name = "tab_basic";
            this.tab_basic.Padding = new Padding(3);
            this.tab_basic.Size = new Size(0x27f, 0x124);
            this.tab_basic.TabIndex = 0;
            this.tab_basic.Text = "学员信息";
            this.checkBox_arranged.AutoSize = true;
            this.checkBox_arranged.ForeColor = Color.Red;
            this.checkBox_arranged.Location = new Point(0x236, 11);
            this.checkBox_arranged.Name = "checkBox_arranged";
            this.checkBox_arranged.Size = new Size(0x3f, 0x15);
            this.checkBox_arranged.TabIndex = 14;
            this.checkBox_arranged.Text = "已安排";
            this.checkBox_arranged.UseVisualStyleBackColor = true;
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_14);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_9);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_8);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_13);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_7);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_10);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_6);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_12);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_5);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_11);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_4);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_3);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_2);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_1);
            this.groupBox_grade.Location = new Point(9, 0xc5);
            this.groupBox_grade.Name = "groupBox_grade";
            this.groupBox_grade.Size = new Size(620, 0x54);
            this.groupBox_grade.TabIndex = 4;
            this.groupBox_grade.TabStop = false;
            this.groupBox_grade.Text = "可教年级";
            this.checkBox_Grad_14.AutoSize = true;
            this.checkBox_Grad_14.Location = new Point(0x225, 0x1b);
            this.checkBox_Grad_14.Name = "checkBox_Grad_14";
            this.checkBox_Grad_14.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_14.TabIndex = 0x16;
            this.checkBox_Grad_14.Tag = "14";
            this.checkBox_Grad_14.Text = "成人";
            this.checkBox_Grad_14.UseVisualStyleBackColor = true;
            this.checkBox_Grad_9.AutoSize = true;
            this.checkBox_Grad_9.Location = new Point(0xa9, 0x1b);
            this.checkBox_Grad_9.Name = "checkBox_Grad_9";
            this.checkBox_Grad_9.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_9.TabIndex = 0x11;
            this.checkBox_Grad_9.Tag = "9";
            this.checkBox_Grad_9.Text = "初三";
            this.checkBox_Grad_9.UseVisualStyleBackColor = true;
            this.checkBox_Grad_8.AutoSize = true;
            this.checkBox_Grad_8.Location = new Point(0x5d, 0x1b);
            this.checkBox_Grad_8.Name = "checkBox_Grad_8";
            this.checkBox_Grad_8.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_8.TabIndex = 0x10;
            this.checkBox_Grad_8.Tag = "8";
            this.checkBox_Grad_8.Text = "初二";
            this.checkBox_Grad_8.UseVisualStyleBackColor = true;
            this.checkBox_Grad_13.AutoSize = true;
            this.checkBox_Grad_13.Location = new Point(0x1d9, 0x1b);
            this.checkBox_Grad_13.Name = "checkBox_Grad_13";
            this.checkBox_Grad_13.Size = new Size(0x3f, 0x15);
            this.checkBox_Grad_13.TabIndex = 0x15;
            this.checkBox_Grad_13.Tag = "13";
            this.checkBox_Grad_13.Text = "大学生";
            this.checkBox_Grad_13.UseVisualStyleBackColor = true;
            this.checkBox_Grad_7.AutoSize = true;
            this.checkBox_Grad_7.Location = new Point(0x11, 0x1b);
            this.checkBox_Grad_7.Name = "checkBox_Grad_7";
            this.checkBox_Grad_7.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_7.TabIndex = 15;
            this.checkBox_Grad_7.Tag = "7";
            this.checkBox_Grad_7.Text = "初一";
            this.checkBox_Grad_7.UseVisualStyleBackColor = true;
            this.checkBox_Grad_10.AutoSize = true;
            this.checkBox_Grad_10.Location = new Point(0xf5, 0x1b);
            this.checkBox_Grad_10.Name = "checkBox_Grad_10";
            this.checkBox_Grad_10.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_10.TabIndex = 0x12;
            this.checkBox_Grad_10.Tag = "10";
            this.checkBox_Grad_10.Text = "高一";
            this.checkBox_Grad_10.UseVisualStyleBackColor = true;
            this.checkBox_Grad_6.AutoSize = true;
            this.checkBox_Grad_6.Location = new Point(0x18d, 0x36);
            this.checkBox_Grad_6.Name = "checkBox_Grad_6";
            this.checkBox_Grad_6.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_6.TabIndex = 14;
            this.checkBox_Grad_6.Tag = "6";
            this.checkBox_Grad_6.Text = "小六";
            this.checkBox_Grad_6.UseVisualStyleBackColor = true;
            this.checkBox_Grad_12.AutoSize = true;
            this.checkBox_Grad_12.Location = new Point(0x18d, 0x1b);
            this.checkBox_Grad_12.Name = "checkBox_Grad_12";
            this.checkBox_Grad_12.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_12.TabIndex = 20;
            this.checkBox_Grad_12.Tag = "12";
            this.checkBox_Grad_12.Text = "高三";
            this.checkBox_Grad_12.UseVisualStyleBackColor = true;
            this.checkBox_Grad_5.AutoSize = true;
            this.checkBox_Grad_5.Location = new Point(0x141, 0x36);
            this.checkBox_Grad_5.Name = "checkBox_Grad_5";
            this.checkBox_Grad_5.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_5.TabIndex = 13;
            this.checkBox_Grad_5.Tag = "5";
            this.checkBox_Grad_5.Text = "小五";
            this.checkBox_Grad_5.UseVisualStyleBackColor = true;
            this.checkBox_Grad_11.AutoSize = true;
            this.checkBox_Grad_11.Location = new Point(0x141, 0x1b);
            this.checkBox_Grad_11.Name = "checkBox_Grad_11";
            this.checkBox_Grad_11.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_11.TabIndex = 0x13;
            this.checkBox_Grad_11.Tag = "11";
            this.checkBox_Grad_11.Text = "高二";
            this.checkBox_Grad_11.UseVisualStyleBackColor = true;
            this.checkBox_Grad_4.AutoSize = true;
            this.checkBox_Grad_4.Location = new Point(0xf5, 0x36);
            this.checkBox_Grad_4.Name = "checkBox_Grad_4";
            this.checkBox_Grad_4.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_4.TabIndex = 12;
            this.checkBox_Grad_4.Tag = "4";
            this.checkBox_Grad_4.Text = "小四";
            this.checkBox_Grad_4.UseVisualStyleBackColor = true;
            this.checkBox_Grad_3.AutoSize = true;
            this.checkBox_Grad_3.Location = new Point(0xa9, 0x36);
            this.checkBox_Grad_3.Name = "checkBox_Grad_3";
            this.checkBox_Grad_3.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_3.TabIndex = 11;
            this.checkBox_Grad_3.Tag = "3";
            this.checkBox_Grad_3.Text = "小三";
            this.checkBox_Grad_3.UseVisualStyleBackColor = true;
            this.checkBox_Grad_2.AutoSize = true;
            this.checkBox_Grad_2.Location = new Point(0x5d, 0x36);
            this.checkBox_Grad_2.Name = "checkBox_Grad_2";
            this.checkBox_Grad_2.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_2.TabIndex = 10;
            this.checkBox_Grad_2.Tag = "2";
            this.checkBox_Grad_2.Text = "小二";
            this.checkBox_Grad_2.UseVisualStyleBackColor = true;
            this.checkBox_Grad_1.AutoSize = true;
            this.checkBox_Grad_1.Location = new Point(0x11, 0x36);
            this.checkBox_Grad_1.Name = "checkBox_Grad_1";
            this.checkBox_Grad_1.Size = new Size(0x33, 0x15);
            this.checkBox_Grad_1.TabIndex = 9;
            this.checkBox_Grad_1.Tag = "1";
            this.checkBox_Grad_1.Text = "小一";
            this.checkBox_Grad_1.UseVisualStyleBackColor = true;
            this.groupBox_course.Controls.Add(this.checkBox1);
            this.groupBox_course.Controls.Add(this.checkBox_14);
            this.groupBox_course.Controls.Add(this.checkBox_13);
            this.groupBox_course.Controls.Add(this.checkBox_12);
            this.groupBox_course.Controls.Add(this.checkBox_11);
            this.groupBox_course.Controls.Add(this.checkBox_10);
            this.groupBox_course.Controls.Add(this.checkBox_9);
            this.groupBox_course.Controls.Add(this.checkBox_8);
            this.groupBox_course.Controls.Add(this.checkBox_7);
            this.groupBox_course.Controls.Add(this.checkBox_6);
            this.groupBox_course.Controls.Add(this.checkBox_5);
            this.groupBox_course.Controls.Add(this.checkBox_4);
            this.groupBox_course.Controls.Add(this.checkBox_3);
            this.groupBox_course.Controls.Add(this.checkBox_2);
            this.groupBox_course.Controls.Add(this.checkBox_1);
            this.groupBox_course.Location = new Point(9, 100);
            this.groupBox_course.Name = "groupBox_course";
            this.groupBox_course.Size = new Size(620, 0x58);
            this.groupBox_course.TabIndex = 3;
            this.groupBox_course.TabStop = false;
            this.groupBox_course.Text = "主要辅导科目";
            this.checkBox1.AutoSize = true;
            this.checkBox1.Location = new Point(0xf5, 0x1b);
            this.checkBox1.Name = "checkBox1";
            this.checkBox1.Size = new Size(0x33, 0x15);
            this.checkBox1.TabIndex = 15;
            this.checkBox1.Tag = "4";
            this.checkBox1.Text = "科学";
            this.checkBox1.UseVisualStyleBackColor = true;
            this.checkBox_14.AutoSize = true;
            this.checkBox_14.Location = new Point(0x1d9, 0x36);
            this.checkBox_14.Name = "checkBox_14";
            this.checkBox_14.Size = new Size(0x3f, 0x15);
            this.checkBox_14.TabIndex = 14;
            this.checkBox_14.Tag = "15";
            this.checkBox_14.Text = "计算机";
            this.checkBox_14.UseVisualStyleBackColor = true;
            this.checkBox_13.AutoSize = true;
            this.checkBox_13.Location = new Point(0x18d, 0x36);
            this.checkBox_13.Name = "checkBox_13";
            this.checkBox_13.Size = new Size(0x33, 0x15);
            this.checkBox_13.TabIndex = 13;
            this.checkBox_13.Tag = "14";
            this.checkBox_13.Text = "音乐";
            this.checkBox_13.UseVisualStyleBackColor = true;
            this.checkBox_12.AutoSize = true;
            this.checkBox_12.Location = new Point(0x141, 0x36);
            this.checkBox_12.Name = "checkBox_12";
            this.checkBox_12.Size = new Size(0x33, 0x15);
            this.checkBox_12.TabIndex = 12;
            this.checkBox_12.Tag = "13";
            this.checkBox_12.Text = "美术";
            this.checkBox_12.UseVisualStyleBackColor = true;
            this.checkBox_11.AutoSize = true;
            this.checkBox_11.Location = new Point(0xf5, 0x36);
            this.checkBox_11.Name = "checkBox_11";
            this.checkBox_11.Size = new Size(0x33, 0x15);
            this.checkBox_11.TabIndex = 11;
            this.checkBox_11.Tag = "12";
            this.checkBox_11.Text = "钢琴";
            this.checkBox_11.UseVisualStyleBackColor = true;
            this.checkBox_10.AutoSize = true;
            this.checkBox_10.Location = new Point(0xa9, 0x36);
            this.checkBox_10.Name = "checkBox_10";
            this.checkBox_10.Size = new Size(0x33, 0x15);
            this.checkBox_10.TabIndex = 10;
            this.checkBox_10.Tag = "11";
            this.checkBox_10.Text = "奥数";
            this.checkBox_10.UseVisualStyleBackColor = true;
            this.checkBox_9.AutoSize = true;
            this.checkBox_9.Location = new Point(0x5d, 0x36);
            this.checkBox_9.Name = "checkBox_9";
            this.checkBox_9.Size = new Size(0x33, 0x15);
            this.checkBox_9.TabIndex = 9;
            this.checkBox_9.Tag = "10";
            this.checkBox_9.Text = "地理";
            this.checkBox_9.UseVisualStyleBackColor = true;
            this.checkBox_8.AutoSize = true;
            this.checkBox_8.Location = new Point(0x11, 0x36);
            this.checkBox_8.Name = "checkBox_8";
            this.checkBox_8.Size = new Size(0x33, 0x15);
            this.checkBox_8.TabIndex = 8;
            this.checkBox_8.Tag = "9";
            this.checkBox_8.Text = "历史";
            this.checkBox_8.UseVisualStyleBackColor = true;
            this.checkBox_7.AutoSize = true;
            this.checkBox_7.Location = new Point(0x225, 0x1b);
            this.checkBox_7.Name = "checkBox_7";
            this.checkBox_7.Size = new Size(0x33, 0x15);
            this.checkBox_7.TabIndex = 7;
            this.checkBox_7.Tag = "8";
            this.checkBox_7.Text = "政治";
            this.checkBox_7.UseVisualStyleBackColor = true;
            this.checkBox_6.AutoSize = true;
            this.checkBox_6.Location = new Point(0x1d9, 0x1b);
            this.checkBox_6.Name = "checkBox_6";
            this.checkBox_6.Size = new Size(0x33, 0x15);
            this.checkBox_6.TabIndex = 6;
            this.checkBox_6.Tag = "7";
            this.checkBox_6.Text = "生物";
            this.checkBox_6.UseVisualStyleBackColor = true;
            this.checkBox_5.AutoSize = true;
            this.checkBox_5.Location = new Point(0x18d, 0x1b);
            this.checkBox_5.Name = "checkBox_5";
            this.checkBox_5.Size = new Size(0x33, 0x15);
            this.checkBox_5.TabIndex = 5;
            this.checkBox_5.Tag = "6";
            this.checkBox_5.Text = "化学";
            this.checkBox_5.UseVisualStyleBackColor = true;
            this.checkBox_4.AutoSize = true;
            this.checkBox_4.Location = new Point(0x141, 0x1b);
            this.checkBox_4.Name = "checkBox_4";
            this.checkBox_4.Size = new Size(0x33, 0x15);
            this.checkBox_4.TabIndex = 4;
            this.checkBox_4.Tag = "5";
            this.checkBox_4.Text = "物理";
            this.checkBox_4.UseVisualStyleBackColor = true;
            this.checkBox_3.AutoSize = true;
            this.checkBox_3.Location = new Point(0xa9, 0x1b);
            this.checkBox_3.Name = "checkBox_3";
            this.checkBox_3.Size = new Size(0x33, 0x15);
            this.checkBox_3.TabIndex = 3;
            this.checkBox_3.Tag = "3";
            this.checkBox_3.Text = "英语";
            this.checkBox_3.UseVisualStyleBackColor = true;
            this.checkBox_2.AutoSize = true;
            this.checkBox_2.Location = new Point(0x5d, 0x1b);
            this.checkBox_2.Name = "checkBox_2";
            this.checkBox_2.Size = new Size(0x33, 0x15);
            this.checkBox_2.TabIndex = 2;
            this.checkBox_2.Tag = "2";
            this.checkBox_2.Text = "数学";
            this.checkBox_2.UseVisualStyleBackColor = true;
            this.checkBox_1.AutoSize = true;
            this.checkBox_1.Location = new Point(0x11, 0x1b);
            this.checkBox_1.Name = "checkBox_1";
            this.checkBox_1.Size = new Size(0x33, 0x15);
            this.checkBox_1.TabIndex = 1;
            this.checkBox_1.Tag = "1";
            this.checkBox_1.Text = "语文";
            this.checkBox_1.UseVisualStyleBackColor = true;
            this.groupBox1.Controls.Add(this.txt_no);
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.ucCombo_dep1);
            this.groupBox1.Controls.Add(this.combo_sex);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.txt_spell);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            this.groupBox1.Location = new Point(9, 0x20);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new Size(0x26a, 0x3b);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "个人信息";
            this.txt_no.Location = new Point(0x4f, 0x16);
            this.txt_no.Name = "txt_no";
            this.txt_no.Size = new Size(0x52, 0x17);
            this.txt_no.TabIndex = 9;
            this.label11.AutoSize = true;
            this.label11.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            this.label11.Location = new Point(14, 0x19);
            this.label11.Name = "label11";
            this.label11.Size = new Size(0x3b, 0x11);
            this.label11.TabIndex = 7;
            this.label11.Text = "学员编号:";
            this.ucCombo_dep1.Location = new Point(0x206, 0x16);
            this.ucCombo_dep1.Margin = new Padding(3, 4, 3, 4);
            this.ucCombo_dep1.Name = "ucCombo_dep1";
            this.ucCombo_dep1.Size = new Size(0x52, 0x1b);
            this.ucCombo_dep1.TabIndex = 0x1d;
            this.combo_sex.DropDownStyle = ComboBoxStyle.DropDownList;
            this.combo_sex.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            this.combo_sex.FormattingEnabled = true;
            this.combo_sex.Items.AddRange(new object[] { "男", "女" });
            this.combo_sex.Location = new Point(0x170, 0x16);
            this.combo_sex.Name = "combo_sex";
            this.combo_sex.Size = new Size(80, 0x19);
            this.combo_sex.TabIndex = 0x17;
            this.label3.AutoSize = true;
            this.label3.Font = new Font("微软雅黑", 9f);
            this.label3.Location = new Point(0xad, 0x19);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x2b, 0x11);
            this.label3.TabIndex = 4;
            this.label3.Text = "简  拼:";
            this.label1.AutoSize = true;
            this.label1.Font = new Font("微软雅黑", 9f);
            this.label1.Location = new Point(470, 0x1a);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x2b, 0x11);
            this.label1.TabIndex = 0x19;
            this.label1.Text = "分  校:";
            this.txt_spell.Location = new Point(0xde, 0x16);
            this.txt_spell.Name = "txt_spell";
            this.txt_spell.Size = new Size(80, 0x17);
            this.txt_spell.TabIndex = 0x10;
            this.label4.AutoSize = true;
            this.label4.Font = new Font("微软雅黑", 9f);
            this.label4.Location = new Point(0x13f, 0x1a);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x2b, 0x11);
            this.label4.TabIndex = 6;
            this.label4.Text = "性  别:";
            this.tab_free.Controls.Add(this.groupBox2);
            this.tab_free.Location = new Point(4, 0x1a);
            this.tab_free.Name = "tab_free";
            this.tab_free.Padding = new Padding(3);
            this.tab_free.Size = new Size(0x27f, 0x124);
            this.tab_free.TabIndex = 1;
            this.tab_free.Text = "家教时间";
            this.tab_free.UseVisualStyleBackColor = true;
            this.groupBox2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.groupBox2.Controls.Add(this.uCkcb1);
            this.groupBox2.Font = new Font("微软雅黑", 9f);
            this.groupBox2.Location = new Point(-5, -12);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new Size(0x288, 310);
            this.groupBox2.TabIndex = 7;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "课程信息";
            this.uCkcb1.Location = new Point(5, 2);
            this.uCkcb1.Margin = new Padding(3, 4, 3, 4);
            this.uCkcb1.Name = "uCkcb1";
            this.uCkcb1.Size = new Size(0x2c4, 0x12a);
            this.uCkcb1.TabIndex = 0;
            this.label10.AutoSize = true;
            this.label10.Font = new Font("微软雅黑", 12.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.label10.Location = new Point(0x12b, 0x26);
            this.label10.Name = "label10";
            this.label10.Size = new Size(0x70, 0x18);
            this.label10.TabIndex = 15;
            this.label10.Text = "学员信息查询";
            base.AutoScaleDimensions = new SizeF(6f, 12f);
//            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x29f, 0x18b);
            base.Controls.Add(this.tabControl1);
            base.Controls.Add(this.label10);
            base.Controls.Add(this.toolStrip1);
            base.Name = "FrmStuCondi";
            this.Text = "学员信息查询";
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.tabControl1.ResumeLayout(false);
            this.tab_basic.ResumeLayout(false);
            this.tab_basic.PerformLayout();
            this.groupBox_grade.ResumeLayout(false);
            this.groupBox_grade.PerformLayout();
            this.groupBox_course.ResumeLayout(false);
            this.groupBox_course.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.tab_free.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        private void tsb_exit_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void tsb_help_Click(object sender, EventArgs e)
        {
        }

        private void tsb_ok_Click(object sender, EventArgs e)
        {
            this.GetConditions();
            DataTable dt = this.yhxxdao.GetStuinfo8condi(
                this.txt_no.Text.Trim(), this.txt_spell.Text.Trim(), this.combo_sex.Text, 
                this.ucCombo_dep1.comboBox1.Text, this.courselist.ToArray(), this.gradelist.ToArray(), 
                this.uCkcb1.course_sec_list.ToArray(),isArranged);
            this.SearchOK(dt);
        }

        // Nested Types
        public delegate void DelegateSearch(DataTable dt);
    }

 

}
